
static CONFIG_H: &str = r#"
#define TCC_VERSION "0.9.27"
"#;

fn main() {
    std::fs::write("tinycc/config.h", CONFIG_H).unwrap();
    let mut builder = cc::Build::new();
    #[cfg(windows)]
    builder.define("TCC_TARGET_PE", None).flag("/utf-8");
    #[cfg(target_pointer_width = "64")]
    builder.define("TCC_TARGET_X86_64", None);

    builder.file("tinycc/libtcc.c").compile("tcc");
}